home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / ldapvi < prev    next >
Encoding:
Text File  |  2010-11-16  |  2.2 KB  |  73 lines

  1. # bash completion for ldapvi
  2.  
  3. have ldapvi &&
  4. _ldapvi()
  5. {
  6.     local cur prev
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         -h|--host)
  13.             _known_hosts_real "$cur"
  14.             return 0
  15.             ;;
  16.         -Y|--sasl-mech)
  17.             COMPREPLY=( $( compgen -W 'EXTERNAL GSSAPI DIGEST-MD5 \
  18.                 CRAM-MD5 PLAIN ANONYMOUS' -- "$cur" ) )
  19.             return 0
  20.             ;;
  21.         --bind)
  22.             COMPREPLY=( $( compgen -W 'simple sasl' -- "$cur" ) )
  23.             return 0
  24.             ;;
  25.         --bind-dialog)
  26.             COMPREPLY=( $( compgen -W 'never auto always' -- $cur ) )
  27.             return 0
  28.             ;;
  29.         --scope)
  30.             COMPREPLY=( $( compgen -W 'base one sub' -- "$cur" ) )
  31.             return 0
  32.             ;;
  33.         --deref)
  34.             COMPREPLY=( $( compgen -W 'never searching finding always' \
  35.                 -- "$cur" ) )
  36.             return 0
  37.             ;;
  38.         --encoding)
  39.             COMPREPLY=( $( compgen -W 'ASCII UTF-8 binary' -- "$cur" ) )
  40.             return 0
  41.             ;;
  42.         --tls)
  43.             COMPREPLY=( $( compgen -W 'never allow try strict' \
  44.                 -- "$cur" ) )
  45.             return 0
  46.             ;;
  47.     esac
  48.  
  49.     if [[ "$cur" == -* ]]; then
  50.         COMPREPLY=( $( compgen -W '--discover --out --in --delete \
  51.             --rename -h --host -D --user -w --password --bind \
  52.             --bind-dialog -I --sasl-interactive --bind-dialog -O \
  53.             --sasl-secprops -Q --sasl-quiet -R --sasl-realm -U \
  54.             --sasl-authcid -X --sasl-authzid -Y --sasl-mech -b \
  55.             --base -s --scope -S --sort --add -o --class --config \
  56.             -c --continue --deleteoldrdn -a --deref -d --discover \
  57.             -A --empty --ncoding -H --help --ldap-conf -m --may -M \
  58.             --managedsait --noquestions -! --noninteractive -q \
  59.             --quiet -R --read -Z --starttls --tls -v --verbose \
  60.             --ldapsearch --ldapmodify --ldapdelete --ldapmoddn' \
  61.             -- "$cur" ) )
  62.     fi
  63. } &&
  64. complete -F _ldapvi ldapvi
  65.  
  66. # Local variables:
  67. # mode: shell-script
  68. # sh-basic-offset: 4
  69. # sh-indent-comment: t
  70. # indent-tabs-mode: nil
  71. # End:
  72. # ex: ts=4 sw=4 et filetype=sh
  73.